'use strict';var _2t={rightButton:{name:"Right button",value:_bw(_7r)},middleButton:{name:"Middle button",value:_bw(_vt)},fourthButton:{name:"4th button",value:_bw(_Be)},fifthButton:{name:"5th button",value:_bw(_ny)},leftCtrl:{name:"Left Ctrl",value:_bw(_rj,!1)},rightCtrl:{name:"Right Ctrl",value:_bw(_ds,!1)}};function _bw(a,b=!0){return{begin:[{combins:[{eventId:a,wildcard:_ak,block:b}]}],end:[{combins:[{eventId:a|_Go,wildcard:_ak}]}]}}
function _np(a={}){a=a.triggers||{};let b=a.preset||"rightButton";"other"!=b&&a.add(_2t[b].value);a.timeout=1E3*(a.timeout||1.5);return a}function _8w(a={}){a=a.sc();"stepSize"in a&&(a.stepSize=Math.max(3,a.stepSize));"dirChangeSens"in a&&(a.dirChangeSens=_Qe(a.dirChangeSens,1,9)+1);_So(_Gg,a)}
{let a={light:{color:"#555555",bgColor:2147483647},dark:{color:"white",bgColor:2130706432}};var _3k=function(b={}){_Sr(b)(c=>{0==b.enabled&&(c=[]);_So(_qr,{icons:c}.add(b,a[b.colors||"light"]))})},_Sr=_wj(function*(b){yield document.fonts.load("10px gestureDirs");var c=b.size||30;b=yield _u(c,a[b.colors||"light"].color);let d=yield _sw("v",.77*c,"rgba(0,255,0,.7)","rgba(200,200,200, 0.2)");c=yield _sw("x",.77*c,"rgba(255,0,0,.7)","rgba(200,200,200, 0.2)");return b.concat(d,c)})}
let _u=_wj(function*(a,b){let c=[];for(let d=1;8>=d;++d){let e=_Ts(""+d,a+"px/1 gestureDirs",b);e=yield _4(e,[{margin:"3 0"},{shadow:"2 2 4 rgba(0,0,0,.4)"}]);c.push(_Xr(e))}return c}),_sw=_wj(function*(a,b,c,d){a=_Ts(a,b+"px/1 gestureDirs",c);c=_Si(.82*b);let e=_Si(b/40);a=yield _4(a,[{resize:c},{margin:_Si((1-.82)*b)},{shadow:`${e} ${e} 3 rgba(0,0,0,.7)`},{background:d},{cornerRadius:"50%"}]);return _Xr(a)});
